package com.shop.front.dao.system;


import com.shop.domain.system.SysConfig;
import com.shop.jpa.BaseDao;
import org.springframework.data.jpa.repository.Query;


public interface SysConfigDao extends BaseDao<SysConfig, Long> {

    SysConfig findByConfigKey(String key);


    @Query(nativeQuery = true, value = "select config_value from sys_config where config_key = ?1 ")
    String findValueByKeyName(String key);

}
